<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>04. 固定的 header 和 footer,IE低版本不支持</title>
    <style type="text/css">
      body {
        display: grid;
        height: 100vh;
        grid-template-rows: auto 1fr auto;
      }
      header {
        background: lightpink;
        padding: 2rem;
      }

      main {
        background: coral;
      }

      footer {
        background: wheat;
        padding: 2rem;
        text-align: center;
      }


    </style>
  </head>
  <body>
    <header><h1>Header.com</h1></header>
    <main></main>
    <footer>Footer Content — Header.com 2020</footer>
  </body>
</html>
